/*
 * @Author: admin@attacker.club
 * @Date: 2022-11-10 00:26:11
 * @LastEditTime: 2022-11-10 00:27:03
 * @Description: 
 */
import request from '@/utils/request'


// 新增平台
export function createssh(data) {
  return request({
    url: '/asset/ssh/',
    method: 'post',
    data
  })
}

// 删除平台
export function deletessh(id) {
  return request({
    url: `/asset/ssh/${id}/`,
    method: 'delete'
  })
}
// 修改平台
export function updatessh(id, data) {
  return request({
    url: `/asset/ssh/${id}/`,
    method: 'put',
    data
  })
}

// 获取平台列表
export function getsshs(data) {
  return request({
    url: '/asset/ssh/',
    method: 'get',
    params: data
  })
}


// 获取平台详情
export function getssh(id) {
  return request({
    url: `/asset/ssh/${id}/`,
    method: 'get'
  })
}

// 类型列表
export function getsshtypes(data) {
  return request({
    url: '/asset/ssh/type/',
    method: 'get',
    params: data
  })
}

